// const mysql = require('mysql');
const { getData, getParam} = require('../tools/query.js')
module.exports = async ctx => {
  debugger
  let param = getParam(ctx.search)
  var result = '默认值';
  // debugger
  try {
    ctx.state.data = await getData(' SELECT * from scdp_user  limit 20 ');
  } catch (e) {
    console.log(e)
  }
}